<?php
	require_once('paths.inc');
	require_once(INCLUDE_PATH.'constants.inc');
	require_once('page.inc');
	require_once(DB_PATH.'db.inc');
	
	require_once('security.inc');
	require_once('utils.inc');	
	require_once('time.inc');
			
	session_start();    
	check_permissions();  
	
	html_header("LANG_Dashboard", "", "dashboard");
	$id_client = $_SESSION['user_logat']->id_client;
		
	$linkuri = array(LANG_Home => "home.php", LANG_Dashboard => "");
	titlu_pagina($linkuri);
	
    output_error_msg();
    output_notice_msg();
    output_extra_text(LANG_EXTRA_DASHBORD);
    
	$db = db_connect();
	
	echo "<div align=\"left\" class=\"container\">";
		echo "<table align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">";
			echo "<tr>";
				echo "<td valign=\"top\" id=\"dash_marfa\">";				
					render_dashboard(CT_DASHBOARD_MARFA, $id_client);
				echo "</td>";
			echo "</tr>";
		echo "</table>";
	echo "</div>";
	echo "<br />";
	echo "<div align=\"left\" class=\"container\">";	
		echo "<table align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">";
			echo "<tr>";		
				echo "<td valign=\"top\" id=\"dash_camion\">";				
                    render_dashboard(CT_DASHBOARD_CAMION, $id_client);					
				echo "</td>";
			echo "</tr>";
		echo "</table>";
	echo "</div>";
		
	html_footer();
?>